﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TraHospitalCompanyGoods.aspx.cs"
    Inherits="Supervise_TraHospitalCompanyGoods" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../styles/css.css" rel="stylesheet" type="text/css">

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript">function Submit1_onclick() {
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 4px">
                        <img src="../images/intro_left.gif" width="4" height="34"></td>
                    <td class="intro_wordbg">
                        按交易药品查询</td>
                    <td background="../images/intro_bg.gif">
                        <img src="../images/intro_right.jpg" width="118" height="34"></td>
                </tr>
            </table>
            <table id="tabData" width="98%" border="1" align="center" cellpadding="2" cellspacing="1">
                <tr>
                    <td align="right">
                        &nbsp;通用名：</td>
                    <td>
                        <asp:TextBox ID="txtProductName" runat="server" InvertedComma="通用名" Width="125px"></asp:TextBox></td>
                    <td align="right">
                        剂型：</td>
                    <td>
                        <asp:TextBox ID="txtMedicinemodel" runat="server" InvertedComma="剂 型" Width="125px"></asp:TextBox></td>
                    <td align="right">
                        规格：</td>
                    <td style="height: 28px">
                        <asp:TextBox ID="txtOutlook" runat="server" InvertedComma="规 格" Width="125px"></asp:TextBox>&nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        商品名：</td>
                    <td>
                        <asp:TextBox ID="txtGoodsName" runat="server" InvertedComma="商品名" Width="125px"></asp:TextBox></td>
                    <td align="right">
                        质量层次：</td>
                    <td>
                        <asp:DropDownList ID="lstQualityLevals" runat="server" Width="125px">
                        </asp:DropDownList></td>
                    <td align="right">
                        药品流水号：
                    </td>
                    <td>
                        <asp:TextBox ID="txtGoodsId" runat="server" InvertedComma="流水号"  NumericOnly="流水号" Width="125px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" style="height: 28px">
                        生产企业名称：</td>
                    <td style="height: 28px">
                        <asp:TextBox ID="txtCompanyNameSC" runat="server" InvertedComma="生产企业" Width="125px"></asp:TextBox>&nbsp;
                    </td>
                    <td align="right" style="height: 28px">
                        生产企业注册号：</td>
                    <td style="height: 28px">
                        <asp:TextBox ID="txtUserCodeSC" runat="server" InvertedComma="企业编码" Width="125px"></asp:TextBox></td>
                    <td align="right" style="height: 28px">
                        配送企业名称：</td>
                    <td style="height: 28px">
                        <asp:TextBox ID="txtCompanyNamePS" runat="server" InvertedComma="配送企业" Width="125px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right">
                        配送企业注册号：</td>
                    <td>
                        <asp:TextBox ID="txtUserCodePS" runat="server" InvertedComma="配送企业" Width="125px"></asp:TextBox></td>
                    <td align="right">
                        医院名称：</td>
                    <td>
                        <asp:TextBox ID="txtHospitalName" runat="server" InvertedComma="配送企业" Width="125px"></asp:TextBox></td>
                    <td align="right">
                        医院注册号：</td>
                    <td>
                        <asp:TextBox ID="txtHosptialUserCode" runat="server" InvertedComma="配送企业" Width="125px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right">
                        中标人名称：</td>
                    <td>
                        <asp:TextBox ID="txtCompanyNameZB" runat="server" InvertedComma="配送企业" Width="125px"></asp:TextBox></td>
                    <td align="right">
                        中标人编码：</td>
                    <td style="height: 28px">
                        <asp:TextBox ID="txtUserCodeZB" runat="server" InvertedComma="配送企业" Width="125px"></asp:TextBox></td>
                    <td align="right">
                        药品类别：</td>
                    <td>
                        <asp:DropDownList ID="lstSort" runat="server" Width="125px">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="right">
                        统计时间：</td>
                    <td style="height: 28px">
                        从<asp:TextBox ID="txtStartDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                            dataType="Date" format="ymd" require="true" DateTimeOnly="开始时间" NotNull='开始时间'
                            msg="日期不存在" Width="111px"></asp:TextBox></td>
                    <td align="right">
                        到<asp:TextBox ID="txtEndDate" runat="server" onclick="javascript:fPopCalendar(this,this);"
                            dataType="Date" format="ymd" require="true" DateTimeOnly="结束时间" NotNull='结束时间'
                            msg="日期不存在" Width="99px"></asp:TextBox></td>
                    <td>
                        &nbsp; <span style="color: #ff0033">（请点击输入框点选时间）</span></td>
                    <td align="right">
                        采购状态：&nbsp;
                       </td>
                    <td>
                        <asp:DropDownList ID="dealDrop" runat="server" Width="187px">
                            <asp:ListItem Value="0">未确认送货</asp:ListItem>
                            <asp:ListItem Value="1">送货中</asp:ListItem>
                            <asp:ListItem Selected="True" Value="2">已入库</asp:ListItem>
                            <asp:ListItem Value="4">无法配送</asp:ListItem>
                            <asp:ListItem Value="5">到期未送</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td align="right" style="height: 26px">
                        <asp:Label ID="Label2" runat="server" BorderStyle="None" Text="采购单名称："></asp:Label></td>
                    <td style="height: 26px">
                        &nbsp;<asp:Label ID="labPurchasePlanName" runat="server" BorderStyle="None" Text=""></asp:Label>
                        <asp:Label ID="labBuyPlanId" runat="server" BorderStyle="None" Text=""></asp:Label></td>
                    <td align="right" style="height: 26px">
                        &nbsp;&nbsp;
                    </td>
                    <td style="height: 26px">
                        <input id="Submit1" name="subToExcel" type="submit" value="导出到Excel" class="button_bg4" style="width: 70px" />
                    </td>
                    <td style="height: 26px">
                        <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="" CssClass="button_Query"
                            OnClientClick="javascript:return CheckForm();" />&nbsp;
                    </td>
                    <td style="height: 26px">
                        &nbsp;
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GridView1" runat="server" Width="98%" AutoGenerateColumns="False"
                CssClass='table_table' HeaderStyle-CssClass='table_title' >
                <Columns>
                <asp:BoundField DataField="GoodsState" HeaderText="交易状态" />
                    <asp:BoundField DataField="GoodsId" HeaderText="流水号" />
                    <asp:BoundField DataField="productname" HeaderText="通用名" />
                    <asp:BoundField DataField="GoodsName" HeaderText="商品名" />
                    <asp:BoundField DataField="medicinemodel" HeaderText="剂型" />
                    <asp:BoundField DataField="outlookc" HeaderText="规格" />
                    <asp:BoundField DataField="factor" HeaderText="转换系数" />
                    <asp:BoundField DataField="qualitylevels" HeaderText="质量层次" />
                    <asp:BoundField DataField="companyName_SC" HeaderText="生产企业" />
                    <asp:BoundField DataField="BidPrice" HeaderText="中标价" />
                    <asp:BoundField DataField="TradePrice" HeaderText="成交价" />
                    <asp:BoundField DataField="RKSL" HeaderText="到货数量" />
                    <asp:BoundField DataField="DHJE" HeaderText="到货金额" />
                     <asp:BoundField DataField="DealStatus" HeaderText="采购状态" />
                    <asp:TemplateField HeaderText="配送详细">
                        <ItemTemplate>
                            <a target="_blank" href='TraGoodsCompanyPSYY.aspx?SupplyGoodsId=<%# DataBinder.Eval(Container.DataItem, "SupplyGoodsId")%>&AccountId_YY=<%=_strAccountId_YY %>&AccountId_PS=<%=_AccountId_PS %>&EndDate=<%=_strEndDate %>&StartDate=<%=_strStartDate %>&AreaId=<%=_AreaId %>&deal=<%#DataBinder.Eval(Container.DataItem, "DealStatus") %>'>
                                配送详细</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <RowStyle CssClass="table_td" />
                <SelectedRowStyle CssClass="table_td" />
            </asp:GridView>
            <div align="right">
                <table border="0">
                    <tr>
                        <td>
                            </td>
                        <td>
                            <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
